package com.d3works.apps.purchase.service;

import com.d3works.apps.base.db.Product;
import com.d3works.apps.purchase.db.SupplierCatalog;
import com.d3works.exception.D3worksException;
import java.math.BigDecimal;
import java.util.Map;

public interface PurchaseProductService {

  public Map<String, Object> getDiscountsFromCatalog(
      SupplierCatalog supplierCatalog, BigDecimal price);

  /**
   * Search for the last shipping coef in purchase order line.
   *
   * @param product a product
   * @return An optional with the shippingCoef
   */
  BigDecimal getLastShippingCoef(Product product) throws D3worksException;
}
